<% content_for :css do %>
  <%= stylesheet_link_tag 'passwords_edit' %>
<% end %>
<% content_for :title do %>修改我的登录密码<% end %>
<%= form_for @user,
      :url => password_url(@user),
      :method => :put,
      :html => {
        :id => :password_form
      } do |f| %>
<div class="grid_12 password">
  <div class="grid_12 head alpha omega">
    <div class="grid_12 title">
      修改我的登录密码
    </div>  
    <% if flash[:success].present? %>
    <div id='success' class="grid_8">
      <div><%= flash[:success] %></div>
    </div>         
    <% end %>
    <div class="grid_12 line">
      <div class="grid_2">密码</div>
      <div class="grid_9">
        <%= f.password_field :password, :value =>'', :class => 't', :title => '请输入密码' %>
      </div>
    </div>
    <div class="grid_12 line">
      <div class="grid_2">确认密码</div>
      <div class="grid_9">
        <%= f.password_field :password_confirmation, :class => 't', :title => '请输入确认密码' %>
      </div>
    </div>
  </div>
  <div class="grid_12 bottom">
    <div class="grid_10">
      <%= f.submit '更新我的登录密码' %><small>或</small><%= link_to "返回", current_user_url(@user)   %>
    </div>
  </div>  
</div>
<% end %>